﻿// -----------------------------------------------------------------------
// <copyright file="LoginController.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace BasicFrameworkDemo.Winform.App
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    using BasicFrameworkDemo.Winform.App.Properties;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class LoginController
    {
        public LoginView LoginView;

        public LoginModel LoginModel;

        public LoginController(LoginView login)
        {
            this.LoginModel = new LoginModel
            {
                UserName = string.Empty,
                Password = string.Empty
            };
            this.LoginView = login;
            this.LoginView.Controllor = this;
            
        }

        public void Login()
        {
            MessageBox.Show(Resources.LoginController_Login_User_ + this.LoginModel.UserName);
        }

    }
}
